package me.yushuai.wukong.base.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * It's using update value and definition of Conf
 *
 * @author zhoushuai@189.cn
 * @since 2022-12-12
 */
@Data
public class UpdateConfDefDTO {

    /**
     * 配置项编号
     */
    @Null(message = "conf.id.Null")
    private Long id;

    /**
     * 业务Id
     */
    @NotNull(message = "conf.bizId.NotNull")
    @Length(max = 40, message = "conf.confCode.Length")
    private String bizId;

    /**
     * 系统配置ID
     */
    @NotNull(message = "conf.groupId.NotNull")
    private Long groupId;

    /**
     * 中文描述
     */
    @NotEmpty(message = "conf.confNamCh.NotEmpty")
    @Length(max = 40, message = "conf.confNameCh.Length")
    private String confNameC;

    /**
     * 英文描述
     */
    @NotEmpty(message = "conf.confNamEn.NotEmpty")
    @Length(max = 40, message = "conf.confNameEn.Length")
    private String confNameE;

    private String value1;

    private String value2;

    /**
     * 自定义1
     */
    @Length(max = 40, message = "conf.udf1.Length")
    private String udf1;

    /**
     * 自定义2
     */
    @Length(max = 40, message = "conf.udf2.Length")
    private String udf2;

    /**
     * 自定义3
     */
    @Length(max = 40, message = "conf.udf3.Length")
    private String udf3;

}
